<?php 
if (User::user_log_in($_POST['login'], $_POST['password'])) {
	?>1<?php
} else {
	?>0<?php
} 
exit; 
?>